home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / CronVixie2.1 / config.h < prev    next >
C/C++ Source or Header  |  1995-06-12  |  4KB  |  116 lines

  1. /* config.h - configurables for Vixie Cron
  2.  *
  3.  * $Header: config.h,v 2.1 90/07/18 00:24:35 vixie Exp $
  4.  */
  5.  
  6. /* Copyright 1988,1990 by Paul Vixie
  7.  * All rights reserved
  8.  *
  9.  * Distribute freely, except: don't remove my name from the source or
  10.  * documentation (don't take credit for my work), mark your changes (don't
  11.  * get me blamed for your possible bugs), don't alter or remove this
  12.  * notice.  May be sold if buildable source is provided to buyer.  No
  13.  * warrantee of any kind, express or implied, is included with this
  14.  * software; use at your own risk, responsibility for damages (if any) to
  15.  * anyone resulting from the use of this software rests entirely with the
  16.  * user.
  17.  *
  18.  * Send bug reports, bug fixes, enhancements, requests, flames, etc., and
  19.  * I'll try to keep a version up to date.  I can be reached as follows:
  20.  * Paul Vixie, 329 Noe Street, San Francisco, CA, 94114, (415) 864-7013,
  21.  * paul@vixie.sf.ca.us || {hoptoad,pacbell,decwrl,crash}!vixie!paul
  22.  */
  23.  
  24. #ifndef    _CONFIG_FLAG
  25. #define    _CONFIG_FLAG
  26.  
  27. /*
  28.  * these are site-dependent
  29.  */
  30.             /*
  31.              * choose one of these MAILCMD commands.  I use
  32.              * /bin/mail for speed; it makes biff bark but doesn't
  33.              * do aliasing.  /usr/lib/sendmail does aliasing but is
  34.              * a hog for short messages.  aliasing is not needed
  35.              * if you make use of the MAILTO= feature in crontabs.
  36.              * (hint: MAILTO= was added for this reason).
  37.              */
  38.  
  39. # define MAILCMD "/usr/lib/sendmail -F\"Cron Daemon\" -odi -oem -or0s %s" /*-*/
  40.             /* -Fx     = set full-name of sender
  41.              * -odi     = Option Deliverymode Interactive
  42.              * -oem     = Option Errors Mailedtosender
  43.              * -or0s = Option Readtimeout -- don't time out
  44.              */
  45.  
  46. /* # define MAILCMD "/bin/mail -d  %s"        /*-*/
  47.             /* -d = undocumented but common flag: deliver locally?
  48.              */
  49.  
  50. #ifndef CRONDIR
  51.             /* CRONDIR is where crond(8) and crontab(1) both chdir
  52.              * to; SPOOL_DIR, ALLOW_FILE, DENY_FILE, and LOG_FILE
  53.              * are all relative to this directory.
  54.              *
  55.              * this can and should be set in the Makefile.
  56.              */
  57. # define CRONDIR    "/var/cron"
  58. #endif
  59.  
  60.             /* SPOOLDIR is where the crontabs live.
  61.              * This directory will have its modtime updated
  62.              * whenever crontab(1) changes a crontab; this is
  63.              * the signal for crond(8) to look at each individual
  64.              * crontab file and reload those whose modtimes are
  65.              * newer than they were last time around (or which
  66.              * didn't exist last time around...)
  67.              */
  68. #define SPOOL_DIR    "tabs"
  69.  
  70.             /* undefining these turns off their features.  note
  71.              * that ALLOW_FILE and DENY_FILE must both be defined
  72.              * in order to enable the allow/deny code.  If neither
  73.              * LOG_FILE or SYSLOG is defined, we don't log.  If
  74.              * both are defined, we log both ways.
  75.              */
  76. #define    ALLOW_FILE    "allow"        /*-*/
  77. #define DENY_FILE    "deny"        /*-*/
  78. #define LOG_FILE    "log"        /*-*/
  79.  
  80.             /* if ALLOW_FILE and DENY_FILE are not defined or are
  81.              * defined but neither exists, should crontab(1) be
  82.              * usable only by root?
  83.              */
  84. /*#define ALLOW_ONLY_ROOT            /*-*/
  85.  
  86.             /* if you want to use syslog(3) instead of appending
  87.              * to CRONDIR/LOG_FILE (/var/cron/log, e.g.), define
  88.              * SYSLOG here.  Note that quite a bit of logging
  89.              * info is written, and that you probably don't want
  90.              * to use this on 4.2bsd since everything goes in
  91.              * /usr/spool/mqueue/syslog.  On 4.[34]bsd you can
  92.              * tell /etc/syslog.conf to send cron's logging to
  93.              * a separate file.
  94.              */
  95. /*#define SYSLOG                 /*-*/
  96.  
  97.             /* this is the name of the environment variable
  98.              * that contains the user name.  it isn't read by
  99.              * cron, but it is SET by crond in the environments
  100.              * it creates for subprocesses.  on BSD, it will
  101.              * always be USER; on SysV it could be LOGNAME or
  102.              * something else.
  103.              */
  104. #if defined(BSD)
  105. # define USERENV    "USER"
  106. #endif
  107. #if defined(ATT)
  108. # define USERENV    "LOGNAME"
  109. #endif
  110.  
  111.             /* where should the daemon stick its PID?
  112.              */
  113. #define PIDFILE        "/etc/crond.pid"
  114.  
  115. #endif /*CONFIG_FLAG*/
  116.